package com.igeek.config.ch01;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @Repository: 标识持久层dao层组件
 *@Repository 标注当前类是数据交互层的类
 */
@Repository
public class UserDao {
    @Autowired
    private User user;

    public void insert(){
        System.out.println("UserDao insert() ...");
        System.out.println(user);
    }
}
